//
//  AppDelegate.swift
//  weibo_swift01
//
//  Created by 孙郝聪 on 16/8/3.
//  Copyright © 2016年 shc. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        // Override point for customization after application launch.
        setupAppearance()

        window = UIWindow(frame: UIScreen.mainScreen().bounds)

       window?.backgroundColor = UIColor.whiteColor()

        window?.rootViewController = MainViewController()

        window?.makeKeyAndVisible()


        return true
    }

    //设置全局外观
    private func setupAppearance() {
        UITabBar.appearance().tintColor = WBAppearanceTintColor
        UINavigationBar.appearance().tintColor = WBAppearanceTintColor
    }


}

